package com.ywjt.platformbusiness.order.adapter;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.order.model.OrderListModel;
import java.util.ArrayList;
import java.util.List;

public class OrderListAdapter extends BaseQuickAdapter<OrderListModel.DataDTO, BaseViewHolder> {
    private int status=0;
    private List<String> data;
    public OrderListAdapter(@Nullable List<OrderListModel.DataDTO> data, int status) {
        super(R.layout.item_order_list, data);
        this.status=status;
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderListModel.DataDTO item) {
        data=new ArrayList<>();
        data.add("");
        data.add("");
//        RecyclerView rcChildOrder=helper.getView(R.id.rcChildOrder);
//        OrderListChild_Adapter adapter=new OrderListChild_Adapter(data,1);
//        rcChildOrder.setLayoutManager(new LinearLayoutManager(mContext));
//        rcChildOrder.setAdapter(adapter);

    }
}
